﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>项目开发部</title>
<link rel="stylesheet" type="text/css" href="_ADMIN_css/css.css" /<link rel="stylesheet" type="text/css" href="_ADMIN_css/laydate.css" />
<link rel="stylesheet" type="text/css" href="_ADMIN_css/manhuaDate.1.0.css">
<script type="text/javascript" src="_ADMIN_js/jquery.min.js"></script>
<script type="text/javascript" src="_ADMIN_js/laydate.js"></script>
<script type="text/javascript" src="_ADMIN_js/rez.js"></script>
<script type="text/javascript" src="_ADMIN_js/layer/layer.js"></script>
</head>
<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="_ADMIN_img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">项目开发部</a>&nbsp;-</span>&nbsp;添加
			</div>
		</div>
		<div class="page ">
			<!-- 会员注册页面样式 -->
			<form action="{:url('admin/job/add')}" method="post">
				<div class="banneradd bor">
					<div class="baTopNo">
						<span>开发部人员添加</span>
					</div>
					<div class="baBody">
						<div class="bbD">
							&nbsp;&nbsp;&nbsp;姓名：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input id="user_name" name="user_name" type="text" class="input3" placeholder="填写姓名"/>
						</div>
						<div class="bbD">
							&nbsp;&nbsp;&nbsp;联系电话：<input id="user_phone" name="user_phone" type="text" class="input3" placeholder="填写联系方式"/>
						</div>
						<div class="bbD">
							&nbsp;&nbsp;&nbsp;入职时间：<input type="text"  autocomplete="off"  id="start" name="user_createtime" class="input3 laydate-icon" style="padding-right: 0;width:240px;"/>

						</div>
						<div class="bbD">
							&nbsp;&nbsp;&nbsp;备注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<textarea id="user_text" value="4444"  style="width:240px;height:150px;" name="user_text" class="input3" placeholder="填写备注"></textarea>
						</div>
						<div class="bbD">
							<p class="bbDP">
								<button id="btn" class="btn_ok btn_yes" href="#">提交</button>
								<a class="btn_ok btn_no" href="{:url('admin/job/person')}">取消</a>
							</p>
						</div>
					</div>
				</div>
			</form>
			<script>
						
						$('#btn').click(function(){
						var user_name = $('#user_name').val();
						var user_phone = $('#user_phone').val();
						var user_createtime = $('#user_createtime').val();
						var user_text = $('#user_text').val();
							if(isChinese(user_name) ==false){
								layer.msg('姓名格式不正确',{icon: 5},1000)
								return false
							}
							
							if(isPhone(user_phone)==false){
								layer.msg('手机格式不正确',{icon: 5},1000)
								return false
							}
							if(user_createtime == ''){
								layer.msg('请选择入职时间',{icon: 5},1000)
								return false
							}
							if(user_text == ''){
								layer.msg('请填写备注',{icon: 5},1000)
								return false
							}
						})
						

							
			</script>
			<!-- 会员注册页面样式end -->
		</div>
	</div>
</body>
<script type="text/javascript">
// 广告弹出框
$(".delban").click(function(){
  $(".banDel").show();
});
$(".close").click(function(){
  $(".banDel").hide();
});
$(".no").click(function(){
  $(".banDel").hide();
});
// 广告弹出框 end
</script>
<script type="text/javascript">
    !function(){
        laydate.skin('molv');//切换皮肤，请查看skins下面皮肤库
        laydate({elem: '#demo'});//绑定元素
    }();

    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY-MM-DD',
        min: '1990-01-01', //设定最小日期为当前日期
        max: '2099-06-16', //最大日期
        istime: true,
        istoday: false,
        choose: function(datas){
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };

    var end = {
        elem: '#end',
        format: 'YYYY-MM-DD',
        min: '1990-01-01',
        max: '2099-06-16',
        istime: true,
        istoday: false,
        choose: function(datas){
            start.max = datas; //结束日选好后，充值开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);

    //自定义日期格式
    laydate({
        elem: '#test1',
        format: 'YYYY年MM月DD日',
        festival: true, //显示节日
        choose: function(datas){ //选择日期完毕的回调
            alert('得到：'+datas);
        }
    });

    //日期范围限定在昨天到明天
    laydate({
        elem: '#hello3',
        min: laydate.now(-1), //-1代表昨天，-2代表前天，以此类推
        max: laydate.now(+1) //+1代表明天，+2代表后天，以此类推
    });
</script>

</html>